package com.citywithincity.db;

public class ArEvent {
	
	public static interface IBeforeAdd{
		void beforeAdd(Record data) throws DaoException;
	}
	
	
	public static interface IBeforeUpdate{
		void beforeUpdate(Record updateData,Record oldData) throws DaoException;
	}
	
	public static interface IBeforeDelete{
		void beforeDelete(Record data) throws DaoException;
	}
	
	/**
	 * 写入数据库
	 * @author Randy
	 *
	 */
	public static interface IBeforeWrite{
		void beforeWrite(Record data) throws DaoException;
	}
	
	
	public static interface IAfterAdd{
		void afterAdd(Record add);
	}
	
	public static interface IAfterUpdate{
		void afterUpdate(Record updateData,Record oldData);
	}
	
	public static interface IAfterDelete{
		void afterDelete(Record data);
	}
	
}
